<tempalte>
  <el-dialog
    :title="isAdd"
    :visible.sync="dialogVisible"
    width="40%"
    :before-close="handleClose">
    <div class="xlSeeFrom">
      <div>测试</div>
    </div>
  </el-dialog>
</tempalte>

<script>
  export default {
    data(){
      return {
        isAdd:'查看详情',
        dialogVisible:false
      }
    },
    methods:{
      handleClose (done) {
        this.$refs.ruleForm.resetFields()
        for(var key in this.ruleForm){
          this.ruleForm[key]=''
        }
        // console.log(this.ruleForm)
        this.dialogVisible = false
        // 清除现有上传的图片
        this.imgUrl1 = ''
        // 清除进度条
        this.percent1 = 0
      },
    }

  }
</script>
